package com.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生信息表
 * </p>
 *
 * @author zyh
 * @since 2023-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Student对象", description="学生信息表")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "studentId", type = IdType.AUTO)
    private Integer studentId;

    @ApiModelProperty(value = "姓名")
    private String studentName;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "班级")
    private String clazz;

    @ApiModelProperty(value = "学院")
    private String institute;

    @ApiModelProperty(value = "电话号码")
    private String tel;

    @ApiModelProperty(value = "电子邮件")
    private String email;

    @ApiModelProperty(value = "密码")
    private String pwd;

    @ApiModelProperty(value = "身份证号")
    private String cardId;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "角色(0管理员，1教师，2学生)")
    private String role;


}
